namespace TimeSheet.view
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	/// <summary>
	///		Summary description for DailyStats.
	/// </summary>
	public abstract class DailyStats : System.Web.UI.UserControl
	{
		protected eWorld.UI.NumericBox nbChargeableHours;
		protected eWorld.UI.NumericBox NumericBox1;
		protected System.Web.UI.WebControls.DropDownList ddlNonChargeableHours;
		protected System.Web.UI.WebControls.DataGrid DataGrid1;
		protected System.Web.UI.WebControls.DataGrid DataGrid2;
		protected System.Web.UI.WebControls.Button btnAddNonChargeableHours;
		protected System.Web.UI.WebControls.Button btnAddChargeableHours;
		protected System.Web.UI.WebControls.DropDownList ddlProjects;
		protected System.Web.UI.WebControls.Label lblMessage;

		private void Page_Load(object sender, System.EventArgs e)
		{
			
		}

		public void SetDate( DateTime date )
		{
			if( date.Date > DateTime.Now.Date )
			{
				this.lblMessage.Text = "This date is in the future, you can't possibly fill in your hours";
			}
			else
			{
				this.lblMessage.Text = "The date is: " + date.ToShortDateString();
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btnAddChargeableHours.Click += new System.EventHandler(this.btnAddChargeableHours_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void btnAddChargeableHours_Click(object sender, System.EventArgs e)
		{
		
		}
	}
}
